package com.kkb.kkbadmin.config;

import com.github.pagehelper.PageInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MybatisPlusConfig
 * @Description MybatisPlus配置类
 * @Author mzj
 * @Date 2021/8/13
 **/
@Configuration
@MapperScan({"com.kkb.kkbadmin.dao"})
public class MybatisPlusConfig {

    /**
     * mp分页拦截器
     *
     * @return PageInterceptor
     */
    @Bean
    public PageInterceptor pageInterceptor() {
        return new PageInterceptor();
    }
}


